<template>
  <div class="breadcrumb-view-wrapper">
    <div class="breadcrumb-view-icon-box">
      <span class="breadcrumb-icon"></span>
      <span class="breadcrumb-text">当前位置：</span>
    </div>
    <div class="breadcrumb-view-content">
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item v-for="(item,index) in breadcrumbList" :key="index" :to="item.path && { path: item.path }">{{item.title}}</el-breadcrumb-item>
      </el-breadcrumb>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BreadcrumbView',
  props:{
    breadcrumbList:{
      type:Array,
      default:function (){
        return []
      }
    }
  },
  watch:{
    breadcrumbList:{
      handler:function (val){

      },
      immediate:true
    }
  },
  data() {
    return {

    }
  },
  mounted() {

  },
  methods: {

  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
@import "../../../assets/styles/base_style";
.breadcrumb-view-wrapper{
  padding: 5px 0 14px 0;
  border-bottom: 1px solid #efefef;
  margin-bottom: 5px;
  &:after{
    @include clearFloat;
  }
  .breadcrumb-view-icon-box{
    float: left;
    position: relative;
    height:100%;
    .breadcrumb-icon{
      display: inline-block;
      background: url("../../../assets/images/cascadetree/location.png") no-repeat;
      width:14px;
      height: 19px;
      position: relative;
      top: 3px;
      left:6px;
    }
    .breadcrumb-text{
      font-size: 14px;
      color: #999;
      position: relative;
      top:-1px;
      padding-left: 12px;
    }
  }
  .breadcrumb-view-content{
    float: left;
  }
}
</style>
<style rel="stylesheet/scss" lang="scss">
.breadcrumb-view-wrapper{
  .el-breadcrumb{
    line-height: 25px;
  }
  .el-breadcrumb__inner{
    color: #999;
  }
  .el-breadcrumb__item:last-child .el-breadcrumb__inner, .el-breadcrumb__item:last-child .el-breadcrumb__inner a, .el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover, .el-breadcrumb__item:last-child .el-breadcrumb__inner:hover{
    color: #999;
    font-weight: normal;
  }
}
</style>
